package com.project.web.system.service.impl.app;

import com.project.web.system.mapper.app.RoleMenuMapper;
import com.project.web.system.model.app.RoleMenu;
import com.project.web.system.service.app.RoleMenuService;
import com.project.web.system.service.impl.common.BaseServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName RoleMenuServiceImpl
 * @Description
 * @Author 王天豪
 * @Date 2020/8/14 3:05 PM
 * @Version 1.0
 */
@Service("roleMenuServiceImpl")
public class RoleMenuServiceImpl extends BaseServiceImpl<RoleMenu, Long> implements RoleMenuService {

    @Autowired
    private RoleMenuMapper roleMenuMapper;

    @Override
    public void deleteByRoelId(Long id) {
        roleMenuMapper.deleteByRoelId(id);
    }

    @Override
    public void batchSave(List<RoleMenu> roleMenus) {
        roleMenuMapper.batchSave(roleMenus);
    }
}
